﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using l1cs.server.model.Instance;

namespace l1cs.server.serverpackets
{
    public class S_CharVisualUpdate : ServerBasePacket
    {
        private static Logger _log = Logger.getLogger( typeof( S_CharVisualUpdate ).FullName );
        private L1PcInstance _cha;

        public S_CharVisualUpdate( L1PcInstance cha )
        {
            _cha = cha;

            writeC( Opcodes.S_OPCODE_CHARVISUALUPDATE );
            writeD( _cha.getId() );
            writeC( _cha.getCurrentWeapon() );
        }

        override
        public byte[] getContent()
        {
            return getBytes();
        }

        override
        public String getType()
        {
            return "[S] S_CharVisualUpdate";
        }
    }
}